# -*- coding: utf-8 -*-
from django.urls import path
from . import views

urlpatterns = [
    path('depart_list/',views.depart_list,name="depart_list"),
    path('depart/add/',views.depart_add),
    path('depart/delete/',views.depart_delete),
    path('depart/<int:nid>/edit/',views.depart_edit),
    path('user/list/',views.user_list),
    path('user/add/',views.user_add),
    path('user/form/add/',views.user_model_form_add),
    path('user/<int:nid>/edit/',views.user_edit),
    path('user/<int:nid>/delete/',views.user_delete),

    # 靓号管理
    path('pretty/list/',views.pretty_list),
    path('pretty/add/',views.pretty_add),
    path('pretty/<int:nid>/edit/',views.pretty_edit),
    path('pretty/<int:nid>/delete/',views.pretty_delete),

    # 管理账号
    path('admin/list/',views.admin_list),
    path('admin/add/',views.admin_add),
    path('admin/<int:nid>/edit/', views.admin_edit),
    path('admin/<int:nid>/delete/', views.admin_delete),
    path('admin/<int:nid>/reset/', views.admin_reset),

    # 用户登录
    path('login/',views.login),
    path('logout/',views.logout),

    # 任务管理
    path('task/list/',views.task_list),
    path('task/ajax/',views.task_ajax),
    path("task/add/",views.task_add),

    # 订单管理
    path("order/list/",views.order_list),
    path("order/add/",views.order_add),
    path("order/delete/",views.order_delete),
    path("order/detail/",views.order_detail),
    path("order/edit/",views.order_edit),
    # 统计
    path("charts/list/",views.charts_list),
    path("charts/bar/",views.chart_bar)




]